{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import numpy as np\n",
    "import pandas as pd"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [],
   "source": [
    "arr = np.array([\n",
    "    [-1.734464, 1.246888, 0.921260, -0.893499],\n",
    "    [0.954527, -0.573931, -0.893817, 1.563767],\n",
    "    [0.713028, -0.259905, -3.059838, -1.824971],\n",
    "    [0.257634, 0.224982, 0.510233, 1.218742],\n",
    "    [2.536384, 2.255618, -1.407619, 0.545119],\n",
    "    [1.224132, 1.863338, 0.333345, -1.985052],\n",
    "])\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([[ 0.954527, -0.573931, -0.893817,  1.563767],\n",
       "       [ 0.713028, -0.259905, -3.059838, -1.824971]])"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "arr[1:3]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([ 1.246888, -0.573931, -0.259905,  0.224982,  2.255618,  1.863338])"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "arr[:,1]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([[-0.573931, -0.893817],\n",
       "       [-0.259905, -3.059838]])"
      ]
     },
     "execution_count": 12,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "arr[1:3,1:3]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "array([[-1.734464,  1.246888,  0.92126 , -0.893499],\n",
       "       [ 0.954527, -0.573931, -0.893817,  1.563767],\n",
       "       [ 0.713028, -0.259905, -3.059838, -1.824971],\n",
       "       [ 0.257634,  0.224982,  0.510233,  1.218742],\n",
       "       [ 2.536384,  2.255618, -1.407619,  0.545119]])"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "arr[:5]"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
